import axios from '@/libs/api.request.js'

// 查询本地评论列表
export const selectLocalReviersList = data =>{
  return axios.request({
    url: "/api/customer/reviers/selectLocalReviersList",
    method : "get",
  })
}

// 查询评论回复列表
export const selectLocalReplyList = localReviersId =>{
  return axios.request({
    url: "/api/customer/reviers/selectLocalReplyList/"+localReviersId,
    method : "get",
  })
}

// 添加回复信息
export const addLocalReply = (localReviersId,localReplyText) =>{
  const data= {
    localReviersId: localReviersId,
    localReplyText: localReplyText,
  };
  return axios.request({
    url: "/api/customer/reviers/addLocalReply",
    method : "post",
    data: data,
  })
}

//根据发布信息id查询回复
export const selectReplyVoByRevierwsId = localReviersId =>{
  return axios.request({
    url: "/api/customer/reviers/replyVo/"+localReviersId,
    method : "post",
  })
}

//查询全部的发布信息
export const selectResviersVo = data =>{
  return axios.request({
    url: "/api/customer/reviers/resviersVo",
    method : "post",
    data:data,
  })
}

//点赞+
export const localFabulousJia = data =>{
  return axios.request({
    url: "/api/local/fabulous/jiaLocalFabulous",
    method : "post",
    data:data,
  })
}

//点赞1+
export const localFabulousJia1 = data =>{
  return axios.request({
    url: "/api/local/fabulous/jia1LocalFabulous",
    method : "post",
    data:data,
  })
}

//点赞-
export const localFabulousJian = data =>{
  return axios.request({
    url: "/api/local/fabulous/jianLocalFabulous",
    method : "post",
    data:data,
  })
}

//查询用户的发布信息数量
export const selectReleaseShu = data =>{
  return axios.request({
    url: "/api/local/fabulous/releaseShu",
    method : "post",
  })
}

//查询用户的点赞数量
export const selectFabulousShu = data =>{
  return axios.request({
    url: "/api/local/fabulous/fabulousShu",
    method : "post",
  })
}

//用户发布本地信息
export const addReviersByCustomer = data =>{
  return axios.request({
    url: "/api/local/fabulous/addReviersByCustomer",
    method : "post",
    data:data,
  })
}

//查询用户发布全部本地信息
export const selectResviersByCustomer = data =>{
  return axios.request({
    url: "/api/local/fabulous/selectResviersByCustomer",
    method : "post",
    data:data,
  })
}

//多图片上传
export const uploadImages = data =>{
  return axios.request({
    url: "/api/local/fabulous/upload",
    method : "post",
    data:data,
  })
}

//消息中的评论
export const selectNewsReviersVo = data =>{
  return axios.request({
    url: "/api/customer/reviers/newsReviersVo",
    method : "post",
  })
}

//消息中的点赞
export const selectNewsReviersVoTwo = data =>{
  return axios.request({
    url: "/api/customer/reviers/newsReviersVoTwo",
    method : "post",
  })
}
